package com.ruoyi.business.annotations.ratelimit;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Description: Sentinel自定义限流注解
 * @Author: Wu Yuwei
 * @Date: 2023/6/28
 */
@Target(value = ElementType.METHOD)
@Retention(value = RetentionPolicy.RUNTIME)
public @interface SentinelRateLimit {

    String resourceName();

    int limitCount() default 5;
}
